package netty.dubborpc.provider;

import netty.dubborpc.publicinterface.HelloService;

import java.util.UUID;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public class HelloServiceImpl implements HelloService {
    @Override
    public String hello(String msg) {
        if (msg==null){
            msg = UUID.randomUUID().toString();
        }
        System.out.println("调用了HelloServiceImpl: "+msg);
        return "调用hello方法: "+msg;
    }
}
